package com.weitu.worklicense.entity;

import com.weitu.contractor.entity.ContractorAudit;

import java.io.Serializable;

/** 
 * 作业许可_作业许可申请表 HSE_WL_WORKLICENSEAPPLY
 * @author LiMeng
 * date 2017/05/25 15:57
 */
public class WorkLicenseApply implements Serializable {
    //串行版本ID
    private static final long serialVersionUID = -6746508379534592335L;

    // 主键 使用uuid
    private String id;

    // 标识
    private String code;

    // 备注
    private String remarks;

    // 删除标记 0未删除 1 已删除  默认：((0))
    private Integer delState;

    // 添加人
    private String addUserId;

    // 添加人部门Id
    private String addDeptId;

    // 添加时间
    private String addTime;

    // 修改人部门Id
    private String updateDeptId;

    // 最后修改人
    private String updateUserId;

    // 最后修改时间
    private String updateTime;

    // 作业类型id
    private String workTypeId;

    // 作业类型名称
    private String workTypeName;

    // 作业级别id
    private String workLevelId;

    // 作业级别名称
    private String workLevelName;

    // 作业地点
    private String workPoint;

    // 作业内容
    private String workContent;

    // 计划开始日期
    private String planStartDate;

    // 计划结束日期
    private String planEndDate;

    // 是否承包商
    private Integer isCheckContractor;

    // 施工承包商资质id
    private String contractorAuditId;

    // 施工部门id
    private String deptId;

    // 施工部门名称
    private String deptName;

    // 申请人id
    private String applyUserId;

    // 申请人名称
    private String applyUserName;

    // 申请部门id
    private String applyDeptId;

    // 申请部门名称
    private String applyDeptName;

    // 申请日期
    private String applyDate;

    // 审批状态
    private Integer auditState;

    //添加人名称
    private String addUserName;

    //添加部门名称
    private String addDeptName;

    //承包商资质
    private ContractorAudit contractorAudit;

    /** 
     * 获取 主键 使用uuid HSE_WL_WORKLICENSEAPPLY.id
     * @return 主键 使用uuid
     */
    public String getId() {
        return id;
    }

    /** 
     * 设置 主键 使用uuid HSE_WL_WORKLICENSEAPPLY.id
     * @param id 主键 使用uuid
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /** 
     * 获取 标识 HSE_WL_WORKLICENSEAPPLY.code
     * @return 标识
     */
    public String getCode() {
        return code;
    }

    /** 
     * 设置 标识 HSE_WL_WORKLICENSEAPPLY.code
     * @param code 标识
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /** 
     * 获取 备注 HSE_WL_WORKLICENSEAPPLY.remarks
     * @return 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /** 
     * 设置 备注 HSE_WL_WORKLICENSEAPPLY.remarks
     * @param remarks 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    /** 
     * 获取 删除标记 0未删除 1 已删除 HSE_WL_WORKLICENSEAPPLY.delState
     * @return 删除标记 0未删除 1 已删除
     */
    public Integer getDelState() {
        return delState;
    }

    /** 
     * 设置 删除标记 0未删除 1 已删除 HSE_WL_WORKLICENSEAPPLY.delState
     * @param delState 删除标记 0未删除 1 已删除
     */
    public void setDelState(Integer delState) {
        this.delState = delState;
    }

    /** 
     * 获取 添加人 HSE_WL_WORKLICENSEAPPLY.addUserId
     * @return 添加人
     */
    public String getAddUserId() {
        return addUserId;
    }

    /** 
     * 设置 添加人 HSE_WL_WORKLICENSEAPPLY.addUserId
     * @param addUserId 添加人
     */
    public void setAddUserId(String addUserId) {
        this.addUserId = addUserId == null ? null : addUserId.trim();
    }

    /** 
     * 获取 添加人部门Id HSE_WL_WORKLICENSEAPPLY.addDeptId
     * @return 添加人部门Id
     */
    public String getAddDeptId() {
        return addDeptId;
    }

    /** 
     * 设置 添加人部门Id HSE_WL_WORKLICENSEAPPLY.addDeptId
     * @param addDeptId 添加人部门Id
     */
    public void setAddDeptId(String addDeptId) {
        this.addDeptId = addDeptId == null ? null : addDeptId.trim();
    }

    /** 
     * 获取 添加时间 HSE_WL_WORKLICENSEAPPLY.addTime
     * @return 添加时间
     */
    public String getAddTime() {
        return addTime;
    }

    /** 
     * 设置 添加时间 HSE_WL_WORKLICENSEAPPLY.addTime
     * @param addTime 添加时间
     */
    public void setAddTime(String addTime) {
        this.addTime = addTime == null ? null : addTime.trim();
    }

    /** 
     * 获取 修改人部门Id HSE_WL_WORKLICENSEAPPLY.updateDeptId
     * @return 修改人部门Id
     */
    public String getUpdateDeptId() {
        return updateDeptId;
    }

    /** 
     * 设置 修改人部门Id HSE_WL_WORKLICENSEAPPLY.updateDeptId
     * @param updateDeptId 修改人部门Id
     */
    public void setUpdateDeptId(String updateDeptId) {
        this.updateDeptId = updateDeptId == null ? null : updateDeptId.trim();
    }

    /** 
     * 获取 最后修改人 HSE_WL_WORKLICENSEAPPLY.updateUserId
     * @return 最后修改人
     */
    public String getUpdateUserId() {
        return updateUserId;
    }

    /** 
     * 设置 最后修改人 HSE_WL_WORKLICENSEAPPLY.updateUserId
     * @param updateUserId 最后修改人
     */
    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId == null ? null : updateUserId.trim();
    }

    /** 
     * 获取 最后修改时间 HSE_WL_WORKLICENSEAPPLY.updateTime
     * @return 最后修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /** 
     * 设置 最后修改时间 HSE_WL_WORKLICENSEAPPLY.updateTime
     * @param updateTime 最后修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    /** 
     * 获取 作业类型id HSE_WL_WORKLICENSEAPPLY.workTypeId
     * @return 作业类型id
     */
    public String getWorkTypeId() {
        return workTypeId;
    }

    /** 
     * 设置 作业类型id HSE_WL_WORKLICENSEAPPLY.workTypeId
     * @param workTypeId 作业类型id
     */
    public void setWorkTypeId(String workTypeId) {
        this.workTypeId = workTypeId == null ? null : workTypeId.trim();
    }

    /** 
     * 获取 作业类型名称 HSE_WL_WORKLICENSEAPPLY.workTypeName
     * @return 作业类型名称
     */
    public String getWorkTypeName() {
        return workTypeName;
    }

    /** 
     * 设置 作业类型名称 HSE_WL_WORKLICENSEAPPLY.workTypeName
     * @param workTypeName 作业类型名称
     */
    public void setWorkTypeName(String workTypeName) {
        this.workTypeName = workTypeName == null ? null : workTypeName.trim();
    }

    /** 
     * 获取 作业级别id HSE_WL_WORKLICENSEAPPLY.workLevelId
     * @return 作业级别id
     */
    public String getWorkLevelId() {
        return workLevelId;
    }

    /** 
     * 设置 作业级别id HSE_WL_WORKLICENSEAPPLY.workLevelId
     * @param workLevelId 作业级别id
     */
    public void setWorkLevelId(String workLevelId) {
        this.workLevelId = workLevelId == null ? null : workLevelId.trim();
    }

    /** 
     * 获取 作业级别名称 HSE_WL_WORKLICENSEAPPLY.workLevelName
     * @return 作业级别名称
     */
    public String getWorkLevelName() {
        return workLevelName;
    }

    /** 
     * 设置 作业级别名称 HSE_WL_WORKLICENSEAPPLY.workLevelName
     * @param workLevelName 作业级别名称
     */
    public void setWorkLevelName(String workLevelName) {
        this.workLevelName = workLevelName == null ? null : workLevelName.trim();
    }

    /** 
     * 获取 作业地点 HSE_WL_WORKLICENSEAPPLY.workPoint
     * @return 作业地点
     */
    public String getWorkPoint() {
        return workPoint;
    }

    /** 
     * 设置 作业地点 HSE_WL_WORKLICENSEAPPLY.workPoint
     * @param workPoint 作业地点
     */
    public void setWorkPoint(String workPoint) {
        this.workPoint = workPoint == null ? null : workPoint.trim();
    }

    /** 
     * 获取 作业内容 HSE_WL_WORKLICENSEAPPLY.workContent
     * @return 作业内容
     */
    public String getWorkContent() {
        return workContent;
    }

    /** 
     * 设置 作业内容 HSE_WL_WORKLICENSEAPPLY.workContent
     * @param workContent 作业内容
     */
    public void setWorkContent(String workContent) {
        this.workContent = workContent == null ? null : workContent.trim();
    }

    /** 
     * 获取 计划开始日期 HSE_WL_WORKLICENSEAPPLY.planStartDate
     * @return 计划开始日期
     */
    public String getPlanStartDate() {
        return planStartDate;
    }

    /** 
     * 设置 计划开始日期 HSE_WL_WORKLICENSEAPPLY.planStartDate
     * @param planStartDate 计划开始日期
     */
    public void setPlanStartDate(String planStartDate) {
        this.planStartDate = planStartDate == null ? null : planStartDate.trim();
    }

    /** 
     * 获取 计划结束日期 HSE_WL_WORKLICENSEAPPLY.planEndDate
     * @return 计划结束日期
     */
    public String getPlanEndDate() {
        return planEndDate;
    }

    /** 
     * 设置 计划结束日期 HSE_WL_WORKLICENSEAPPLY.planEndDate
     * @param planEndDate 计划结束日期
     */
    public void setPlanEndDate(String planEndDate) {
        this.planEndDate = planEndDate == null ? null : planEndDate.trim();
    }

    /** 
     * 获取 是否承包商 HSE_WL_WORKLICENSEAPPLY.isCheckContractor
     * @return 是否承包商
     */
    public Integer getIsCheckContractor() {
        return isCheckContractor;
    }

    /** 
     * 设置 是否承包商 HSE_WL_WORKLICENSEAPPLY.isCheckContractor
     * @param isCheckContractor 是否承包商
     */
    public void setIsCheckContractor(Integer isCheckContractor) {
        this.isCheckContractor = isCheckContractor;
    }

    /** 
     * 获取 施工承包商资质id HSE_WL_WORKLICENSEAPPLY.contractorAuditId
     * @return 施工承包商资质id
     */
    public String getContractorAuditId() {
        return contractorAuditId;
    }

    /** 
     * 设置 施工承包商资质id HSE_WL_WORKLICENSEAPPLY.contractorAuditId
     * @param contractorAuditId 施工承包商资质id
     */
    public void setContractorAuditId(String contractorAuditId) {
        this.contractorAuditId = contractorAuditId == null ? null : contractorAuditId.trim();
    }

    /** 
     * 获取 施工部门id HSE_WL_WORKLICENSEAPPLY.deptId
     * @return 施工部门id
     */
    public String getDeptId() {
        return deptId;
    }

    /** 
     * 设置 施工部门id HSE_WL_WORKLICENSEAPPLY.deptId
     * @param deptId 施工部门id
     */
    public void setDeptId(String deptId) {
        this.deptId = deptId == null ? null : deptId.trim();
    }

    /** 
     * 获取 施工部门名称 HSE_WL_WORKLICENSEAPPLY.deptName
     * @return 施工部门名称
     */
    public String getDeptName() {
        return deptName;
    }

    /** 
     * 设置 施工部门名称 HSE_WL_WORKLICENSEAPPLY.deptName
     * @param deptName 施工部门名称
     */
    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    /** 
     * 获取 申请人id HSE_WL_WORKLICENSEAPPLY.applyUserId
     * @return 申请人id
     */
    public String getApplyUserId() {
        return applyUserId;
    }

    /** 
     * 设置 申请人id HSE_WL_WORKLICENSEAPPLY.applyUserId
     * @param applyUserId 申请人id
     */
    public void setApplyUserId(String applyUserId) {
        this.applyUserId = applyUserId == null ? null : applyUserId.trim();
    }

    /** 
     * 获取 申请人名称 HSE_WL_WORKLICENSEAPPLY.applyUserName
     * @return 申请人名称
     */
    public String getApplyUserName() {
        return applyUserName;
    }

    /** 
     * 设置 申请人名称 HSE_WL_WORKLICENSEAPPLY.applyUserName
     * @param applyUserName 申请人名称
     */
    public void setApplyUserName(String applyUserName) {
        this.applyUserName = applyUserName == null ? null : applyUserName.trim();
    }

    /** 
     * 获取 申请部门id HSE_WL_WORKLICENSEAPPLY.applyDeptId
     * @return 申请部门id
     */
    public String getApplyDeptId() {
        return applyDeptId;
    }

    /** 
     * 设置 申请部门id HSE_WL_WORKLICENSEAPPLY.applyDeptId
     * @param applyDeptId 申请部门id
     */
    public void setApplyDeptId(String applyDeptId) {
        this.applyDeptId = applyDeptId == null ? null : applyDeptId.trim();
    }

    /** 
     * 获取 申请部门名称 HSE_WL_WORKLICENSEAPPLY.applyDeptName
     * @return 申请部门名称
     */
    public String getApplyDeptName() {
        return applyDeptName;
    }

    /** 
     * 设置 申请部门名称 HSE_WL_WORKLICENSEAPPLY.applyDeptName
     * @param applyDeptName 申请部门名称
     */
    public void setApplyDeptName(String applyDeptName) {
        this.applyDeptName = applyDeptName == null ? null : applyDeptName.trim();
    }

    /** 
     * 获取 申请日期 HSE_WL_WORKLICENSEAPPLY.applyDate
     * @return 申请日期
     */
    public String getApplyDate() {
        return applyDate;
    }

    /** 
     * 设置 申请日期 HSE_WL_WORKLICENSEAPPLY.applyDate
     * @param applyDate 申请日期
     */
    public void setApplyDate(String applyDate) {
        this.applyDate = applyDate == null ? null : applyDate.trim();
    }

    /** 
     * 获取 审批状态 HSE_WL_WORKLICENSEAPPLY.auditState
     * @return 审批状态
     */
    public Integer getAuditState() {
        return auditState;
    }

    /** 
     * 设置 审批状态 HSE_WL_WORKLICENSEAPPLY.auditState
     * @param auditState 审批状态
     */
    public void setAuditState(Integer auditState) {
        this.auditState = auditState;
    }

    public String getAddUserName() {
        return addUserName;
    }

    public WorkLicenseApply setAddUserName(String addUserName) {
        this.addUserName = addUserName;
        return this;
    }

    public String getAddDeptName() {
        return addDeptName;
    }

    public WorkLicenseApply setAddDeptName(String addDeptName) {
        this.addDeptName = addDeptName;
        return this;
    }

    public ContractorAudit getContractorAudit() {
        return contractorAudit;
    }

    public WorkLicenseApply setContractorAudit(ContractorAudit contractorAudit) {
        this.contractorAudit = contractorAudit;
        return this;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WorkLicenseApply that = (WorkLicenseApply) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (remarks != null ? !remarks.equals(that.remarks) : that.remarks != null) return false;
        if (delState != null ? !delState.equals(that.delState) : that.delState != null) return false;
        if (addUserId != null ? !addUserId.equals(that.addUserId) : that.addUserId != null) return false;
        if (addDeptId != null ? !addDeptId.equals(that.addDeptId) : that.addDeptId != null) return false;
        if (addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        if (updateDeptId != null ? !updateDeptId.equals(that.updateDeptId) : that.updateDeptId != null) return false;
        if (updateUserId != null ? !updateUserId.equals(that.updateUserId) : that.updateUserId != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (workTypeId != null ? !workTypeId.equals(that.workTypeId) : that.workTypeId != null) return false;
        if (workTypeName != null ? !workTypeName.equals(that.workTypeName) : that.workTypeName != null) return false;
        if (workLevelId != null ? !workLevelId.equals(that.workLevelId) : that.workLevelId != null) return false;
        if (workLevelName != null ? !workLevelName.equals(that.workLevelName) : that.workLevelName != null)
            return false;
        if (workPoint != null ? !workPoint.equals(that.workPoint) : that.workPoint != null) return false;
        if (workContent != null ? !workContent.equals(that.workContent) : that.workContent != null) return false;
        if (planStartDate != null ? !planStartDate.equals(that.planStartDate) : that.planStartDate != null)
            return false;
        if (planEndDate != null ? !planEndDate.equals(that.planEndDate) : that.planEndDate != null) return false;
        if (isCheckContractor != null ? !isCheckContractor.equals(that.isCheckContractor) : that.isCheckContractor != null)
            return false;
        if (contractorAuditId != null ? !contractorAuditId.equals(that.contractorAuditId) : that.contractorAuditId != null)
            return false;
        if (deptId != null ? !deptId.equals(that.deptId) : that.deptId != null) return false;
        if (deptName != null ? !deptName.equals(that.deptName) : that.deptName != null) return false;
        if (applyUserId != null ? !applyUserId.equals(that.applyUserId) : that.applyUserId != null) return false;
        if (applyUserName != null ? !applyUserName.equals(that.applyUserName) : that.applyUserName != null)
            return false;
        if (applyDeptId != null ? !applyDeptId.equals(that.applyDeptId) : that.applyDeptId != null) return false;
        if (applyDeptName != null ? !applyDeptName.equals(that.applyDeptName) : that.applyDeptName != null)
            return false;
        if (applyDate != null ? !applyDate.equals(that.applyDate) : that.applyDate != null) return false;
        if (auditState != null ? !auditState.equals(that.auditState) : that.auditState != null) return false;
        if (addUserName != null ? !addUserName.equals(that.addUserName) : that.addUserName != null) return false;
        if (addDeptName != null ? !addDeptName.equals(that.addDeptName) : that.addDeptName != null) return false;
        return contractorAudit != null ? contractorAudit.equals(that.contractorAudit) : that.contractorAudit == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (delState != null ? delState.hashCode() : 0);
        result = 31 * result + (addUserId != null ? addUserId.hashCode() : 0);
        result = 31 * result + (addDeptId != null ? addDeptId.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateDeptId != null ? updateDeptId.hashCode() : 0);
        result = 31 * result + (updateUserId != null ? updateUserId.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (workTypeId != null ? workTypeId.hashCode() : 0);
        result = 31 * result + (workTypeName != null ? workTypeName.hashCode() : 0);
        result = 31 * result + (workLevelId != null ? workLevelId.hashCode() : 0);
        result = 31 * result + (workLevelName != null ? workLevelName.hashCode() : 0);
        result = 31 * result + (workPoint != null ? workPoint.hashCode() : 0);
        result = 31 * result + (workContent != null ? workContent.hashCode() : 0);
        result = 31 * result + (planStartDate != null ? planStartDate.hashCode() : 0);
        result = 31 * result + (planEndDate != null ? planEndDate.hashCode() : 0);
        result = 31 * result + (isCheckContractor != null ? isCheckContractor.hashCode() : 0);
        result = 31 * result + (contractorAuditId != null ? contractorAuditId.hashCode() : 0);
        result = 31 * result + (deptId != null ? deptId.hashCode() : 0);
        result = 31 * result + (deptName != null ? deptName.hashCode() : 0);
        result = 31 * result + (applyUserId != null ? applyUserId.hashCode() : 0);
        result = 31 * result + (applyUserName != null ? applyUserName.hashCode() : 0);
        result = 31 * result + (applyDeptId != null ? applyDeptId.hashCode() : 0);
        result = 31 * result + (applyDeptName != null ? applyDeptName.hashCode() : 0);
        result = 31 * result + (applyDate != null ? applyDate.hashCode() : 0);
        result = 31 * result + (auditState != null ? auditState.hashCode() : 0);
        result = 31 * result + (addUserName != null ? addUserName.hashCode() : 0);
        result = 31 * result + (addDeptName != null ? addDeptName.hashCode() : 0);
        result = 31 * result + (contractorAudit != null ? contractorAudit.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "WorkLicenseApply{" +
                "id='" + id + '\'' +
                ", code='" + code + '\'' +
                ", remarks='" + remarks + '\'' +
                ", delState=" + delState +
                ", addUserId='" + addUserId + '\'' +
                ", addDeptId='" + addDeptId + '\'' +
                ", addTime='" + addTime + '\'' +
                ", updateDeptId='" + updateDeptId + '\'' +
                ", updateUserId='" + updateUserId + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", workTypeId='" + workTypeId + '\'' +
                ", workTypeName='" + workTypeName + '\'' +
                ", workLevelId='" + workLevelId + '\'' +
                ", workLevelName='" + workLevelName + '\'' +
                ", workPoint='" + workPoint + '\'' +
                ", workContent='" + workContent + '\'' +
                ", planStartDate='" + planStartDate + '\'' +
                ", planEndDate='" + planEndDate + '\'' +
                ", isCheckContractor=" + isCheckContractor +
                ", contractorAuditId='" + contractorAuditId + '\'' +
                ", deptId='" + deptId + '\'' +
                ", deptName='" + deptName + '\'' +
                ", applyUserId='" + applyUserId + '\'' +
                ", applyUserName='" + applyUserName + '\'' +
                ", applyDeptId='" + applyDeptId + '\'' +
                ", applyDeptName='" + applyDeptName + '\'' +
                ", applyDate='" + applyDate + '\'' +
                ", auditState=" + auditState +
                ", addUserName='" + addUserName + '\'' +
                ", addDeptName='" + addDeptName + '\'' +
                ", contractorAudit=" + contractorAudit +
                '}';
    }

}